<template>
    <img :src="initProp.url || defaultImg" style="width: 100%; height: 100%;" alt="">
    <!-- <el-form label-position="left" size="small" label-width="100px">
        <el-form-item label="图片地址">
            <el-input v-model="initProp.url" />
        </el-form-item>
    </el-form> -->
</template>

<script setup>
import cardJson from './card.json'
import defaultImg from './static/default.png'
// 定义配置属性
const props = defineProps({
    initProp: {
        type: Object,
        default() {
            return cardJson.initProp
        }
    }
})
</script>

<style>
.text_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
</style>

